// 引入 axios 实现数据请求的统一管理
// import axios from 'axios';
import axios from '../utils/Axios.js';

// 请求地址列表数据
export const getAddressList = params => axios.get('/addressList', { params });

// 请求搜索和切换数据
export const getSearchList = params => axios.post('/list', params);

// 请求详情购物车数据
export const getShopList = params => axios.get('/shoplist', { params });

// 请求首页轮播图数据
export const getBannerList = params => axios.get('/api/banner', { params });

// 详情页获取数据
export const getDetailList = params => axios.post('/details', params);
